package netty2;

import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;

public class bytedemo1 {

    public static void main(String[] args) throws UnsupportedEncodingException {
        String str1 = "hello你";
        byte[] bytes = str1.getBytes(StandardCharsets.UTF_8);
        System.out.println(bytes.length);


    }
}
